package com.dataseek.iot.mqtt.demo;


/**
 * @author cc
 * @Title: MQTT配置
 * @Description: MQTT配置
 * @date 2021/8/2612:43 下午
 * @since 1.0
 */

public abstract class MQTTConfig {

    protected final String broker="master";
    protected final String clientId = "cc";
    protected final int qos = 2;
    protected Boolean hasSSL = false;
    protected Integer port  = 1883;
    protected final String username = "";
    protected final String password = "";
    protected final String TCP = "tcp://";
    protected final String SSL = "ssl://";

    /**
     * Custom Configuration
     * @param broker
     * @param port
     * @param ssl
     * @param withUserNamePass
     */
    protected abstract void config(String broker, Integer port, Boolean ssl,
                                   Boolean withUserNamePass);

    /**
     * Default Configuration
     */
    protected abstract void config();




}
